﻿using System;
using System.Collections.Generic;
using System.Text;
using yb.commerce.Model;
using yb.commerce.DAL;

namespace yb.commerce.BLL
{
    public class MessageBusiness
    {
        public bool Add(Message message)
        {
            return new MessageDAO().Add(message);
        }

        public bool Delete(int Id)
        {
            return new MessageDAO().Delete(Id);
        }

        public bool Update(Message message)
        {
            return new MessageDAO().Update(message);
        }

        public Message GetEntity(int Id)
        {
            return new MessageDAO().GetEntity(Id);
        }

        public DataRecordTable GetList(string fieldList, string orderField, bool orderBy, int pageIndex, int pageSize, string where)
        {
            return new MessageDAO().GetList(fieldList, orderField, orderBy, pageIndex, pageSize, where);
        }
        public bool Reply(Message message)
        {
            return new MessageDAO().Reply(message);
        }
    }
}
